﻿<%@ Page Title="" Language="C#" MasterPageFile="~/masterPage/Site.master" AutoEventWireup="true" Inherits="Comandas" Codebehind="Comandas.aspx.cs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <h2>
    Comandas
</h2>
    <table>
    <tr>
            <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Agregar Comanda" style="float: right;" />  
    </tr>

        <tr>
            
            <td> <asp:Label ID="Label1" runat="server" Text="Mesa"></asp:Label> </td>
            <td> <asp:DropDownList ID="ddlMesas" runat="server">
        </asp:DropDownList></td>        
        </tr>

         <tr>
            
            <td> <asp:Label ID="Label2" runat="server" Text="Mozo"></asp:Label> </td>
            <td> <asp:DropDownList ID="ddlMozos" runat="server">
        </asp:DropDownList></td>        
        </tr>
        
    </table>
 
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:BarCafeConnectionString %>" 
        SelectCommand="SELECT DISTINCT * FROM [Bebida]"></asp:SqlDataSource>
    <br />
    <div style="width: 400px;float: left;">
    Bebidas
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        CellPadding="4" DataKeyNames="Id_Bebida" DataSourceID="SqlDataSource1" 
        ForeColor="#333333" GridLines="None" Width="389px" 
            Height="86px" onselectedindexchanged="GridView1_SelectedIndexChanged">
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        <Columns>
            <asp:BoundField DataField="Id_Bebida" HeaderText="Id_Bebida" 
                InsertVisible="False" ReadOnly="True" SortExpression="Id_Bebida" 
                Visible="true" />
            <asp:BoundField DataField="Descripcion" HeaderText="Descripcion" 
                SortExpression="Descripcion" />
            <asp:BoundField DataField="Tamanio" HeaderText="Tamanio" 
                SortExpression="Tamanio" />
            <asp:BoundField DataField="Valor" HeaderText="Valor" SortExpression="Valor"/>
            <asp:CommandField ButtonType="Button" ShowSelectButton="True" CausesValidation="false" />
        </Columns>
        <EditRowStyle BackColor="#999999" />
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#E9E7E2" />
        <SortedAscendingHeaderStyle BackColor="#506C8C" />
        <SortedDescendingCellStyle BackColor="#FFFDF8" />
        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />

          <emptydatatemplate>

  
           No se encontraron datos.  

        </emptydatatemplate> 
    </asp:GridView>
    </div>
 
    <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
        ConnectionString="<%$ ConnectionStrings:BarCafeConnectionString %>" 
        SelectCommand="SELECT DISTINCT * FROM [Plato]"></asp:SqlDataSource>
    
    <div style="width: 400px;float:  right;">
    Platos
    <asp:GridView ID="GridView2" runat="server" 
        AutoGenerateColumns="False" CellPadding="4" DataKeyNames="Id_Plato,Tiempo_Elaboracion" 
        DataSourceID="SqlDataSource2" ForeColor="#333333" GridLines="None" 
            Width="390px" onselectedindexchanged="GridView2_SelectedIndexChanged">
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        <Columns>
            <asp:BoundField DataField="Id_Plato" HeaderText="Id_Plato" 
                InsertVisible="False" ReadOnly="True" SortExpression="Id_Plato" 
                Visible="False" />
            <asp:BoundField DataField="Descripcion" HeaderText="Descripcion" 
                SortExpression="Descripcion" />
            <asp:BoundField DataField="Tamanio" HeaderText="Tamanio" 
                SortExpression="Tamanio" />
            <asp:BoundField DataField="Valor" HeaderText="Valor" SortExpression="Valor" />
            <asp:BoundField DataField="Tiempo_Elaboracion" HeaderText="Tiempo_Elaboracion" 
                SortExpression="Tiempo_Elaboracion" Visible="False" />
              <asp:CommandField />
            <asp:CommandField ButtonType="Button" ShowSelectButton="True" />
        </Columns>
        <EditRowStyle BackColor="#999999" />
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#E9E7E2" />
        <SortedAscendingHeaderStyle BackColor="#506C8C" />
        <SortedDescendingCellStyle BackColor="#FFFDF8" />
        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />

          <emptydatatemplate>

  
            No se encontraron datos.  

        </emptydatatemplate> 
    </asp:GridView>
    </div>
    <br />
    <div>
        Pedido
<asp:GridView ID="GridView3" runat="server" 
        AutoGenerateColumns="False" CellPadding="4" DataKeyNames="Id_Plato" 
        ForeColor="#333333" GridLines="None" 
            Width="390px" onselectedindexchanged="GridView3_SelectedIndexChanged">
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        <Columns>
            <asp:BoundField DataField="Id_Plato" HeaderText="Id_Plato" 
                InsertVisible="False" ReadOnly="True" SortExpression="Id_Plato" 
                Visible="False" />
            <asp:BoundField DataField="Descripcion" HeaderText="Descripcion" 
                SortExpression="Descripcion" />
            <asp:BoundField DataField="Tamanio" HeaderText="Tamanio" 
                SortExpression="Tamanio" />
            <asp:BoundField DataField="Valor" HeaderText="Valor" SortExpression="Valor" />
            <asp:BoundField DataField="Tiempo_Elaboracion" HeaderText="Tiempo_Elaboracion" 
                SortExpression="Tiempo_Elaboracion" Visible="False" />
              <asp:CommandField />
            <asp:CommandField ButtonType="Button" ShowSelectButton="True" 
                SelectText="Eliminar" />
        </Columns>
        <EditRowStyle BackColor="#999999" />
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#E9E7E2" />
        <SortedAscendingHeaderStyle BackColor="#506C8C" />
        <SortedDescendingCellStyle BackColor="#FFFDF8" />
        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />

          <emptydatatemplate>

  
            No se encontraron datos.  

        </emptydatatemplate> 
    </asp:GridView>
    <asp:GridView ID="GridView4" runat="server" AutoGenerateColumns="False" 
        CellPadding="4" DataKeyNames="Id_Bebida"  
        ForeColor="#333333" GridLines="None" Width="389px" 
            Height="86px" onselectedindexchanged="GridView4_SelectedIndexChanged">
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        <Columns>
            <asp:BoundField DataField="Id_Bebida" HeaderText="Id_Bebida" 
                InsertVisible="False" ReadOnly="True" SortExpression="Id_Bebida" 
                Visible="False" />
            <asp:BoundField DataField="Descripcion" HeaderText="Descripcion" 
                SortExpression="Descripcion" />
            <asp:BoundField DataField="Tamanio" HeaderText="Tamanio" 
                SortExpression="Tamanio" />
            <asp:BoundField DataField="Valor" HeaderText="Valor" SortExpression="Valor"/>
            <asp:CommandField ButtonType="Button" ShowSelectButton="True" 
                SelectText="Eliminar" />
        </Columns>
        <EditRowStyle BackColor="#999999" />
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#E9E7E2" />
        <SortedAscendingHeaderStyle BackColor="#506C8C" />
        <SortedDescendingCellStyle BackColor="#FFFDF8" />
        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />

          <emptydatatemplate>

  
            No se encontraron datos.  

        </emptydatatemplate> 
    </asp:GridView>
    
    
    
    </div>
  
    </asp:Content>


